import 'package:json_annotation/json_annotation.dart';

part 'splash_list_api.g.dart';

@JsonSerializable()
class ResponseSplashListApi {
  final String type;
  final String imageSrc;
  final String linkType;
  final String linkUrl;
  final String linkAppPage;
  final int duration;

  ResponseSplashListApi({
    required this.type,
    required this.imageSrc,
    required this.linkType,
    required this.linkUrl,
    required this.linkAppPage,
    required this.duration,
  });

  factory ResponseSplashListApi.fromJson(Map<String, dynamic> json) =>
      _$ResponseSplashListApiFromJson(json);

  Map<String, dynamic> toJson() => _$ResponseSplashListApiToJson(this);
}
